package com.chenglai.goods.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author rxh
 * 参数模板，创建商品时可快速复用
 */
@ApiModel(value = "t_cl_goods_param")
@Table(name = "t_cl_goods_param")
public class GoodsParam implements Serializable {


    /**
     * 主键
     */
    @Id
    @Column(name = "param_id", updatable = false)
    @ApiModelProperty(value = "主键")
    private Integer paramId;

    /**
     * 参数名
     */
    @Column(name = "param_name")
    @ApiModelProperty(value = "参数名")
    private String paramName;

    /**
     * 参数值，存储结构[{"pk":"123","pv":"123"},{"pk":"123","pv":"123"}]
     */
    @Column(name = "param_value")
    @ApiModelProperty(value = "参数值")
    private String paramValue;

    /**
     * 门店ID
     */
    @Column(name = "shop_id")
    @ApiModelProperty(value = "门店ID")
    private Integer shopId;

    public Integer getParamId() {
        return paramId;
    }

    public void setParamId(Integer paramId) {
        this.paramId = paramId;
    }


    public String getParamName() {
        return paramName;
    }

    public void setParamName(String paramName) {
        this.paramName = paramName;
    }


    public String getParamValue() {
        return paramValue;
    }

    public void setParamValue(String paramValue) {
        this.paramValue = paramValue;
    }


    public Integer getShopId() {
        return shopId;
    }

    public void setShopId(Integer shopId) {
        this.shopId = shopId;
    }

}
